var height = $(".l-layout-center").height();
jQuery.ajax({
	url:'/v1/r/getMenu',
	dataType:'json',
	type:'post',
	success:function(list){
		var html ="";
		for(var i in list){
			var root = list[i];
			if(i==0){
				html+=' <div title="'+root.name+'" class="l-scroll">';
			}else{
				html += ' <div title="'+root.name+'">';
				html += '<div style=" height:7px;"></div>';
			}
			for(var k in root.children){
				var item = root.children[k];
				html += '<a class="l-link" href="javascript:f_addTab(\''+item.id+'\',\''+item.name+'\',\''+item.url+'\');">'+item.name+'</a>';
			}
			
			html += "</div>"
		}
		jQuery("#accordion1").html(html);
		//面板
		$("#accordion1").ligerAccordion({
			height : height - 24,
			speed : null
		});
		accordion = $("#accordion1").ligerGetAccordionManager();
	}
});